<#assign base = request.contextPath />

<script src="ueditor/ueditor.config.js"></script>
<script src="ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="ueditor/lang/zh-cn/zh-cn.js"></script>





<div class="tpl-portlet-components">
    <div class="portlet-title">
        <div class="caption font-green bold">
            <span class="am-icon-code"></span> 添加商品
        </div>

        <div class="tpl-block">
            <div class="am-g">
                <div class="am-u-sm-12">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-xs">
                            <label class="am-btn"><h3>店铺类型:</h3></label>
                            <button type="button" class="am-btn am-btn-default am-btn-success"> 电商</button>
                            <button type="button" class="am-btn am-btn-default am-btn-secondary"> 预约</button>
                            <button type="button" class="am-btn am-btn-default am-btn-warning"> 到店</button>
                        </div>
                        <select class="xiala-right">
                            <option value="option1">电商</option>
                            <option value="option2">预约</option>
                            <option value="option3">到店</option>
                        </select>
                        <span class="xiala-right">默认展示店铺类型 &nbsp;&nbsp;&nbsp;</span>
                    </div>
                </div>
            </div>

    <div class="portlet-title">
        <div class="caption font-green bold">
            <span style="margin-left: 100px"></span> 选择分类 :
            <span ></span> 无
        </div>
    </div>

    <div class="tpl-block ">
        <div class="am-g tpl-amazeui-form">
            <div class="am-u-sm-12 am-u-md-9">
                <form action="api/v1/goods/edit" method="post" class="am-form am-form-horizontal" enctype="applicaion/x-www-form-urlencoded" >
                    <div class="am-form-group">
                        <label for="user-name1" class="am-u-sm-3 am-form-label">商品名称 </label>
                        <div class="am-u-sm-9">
                            <input type="text" id="user-name1" name="goodsName" placeholder="商品名称">
                            <small></small>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-print" class="am-u-sm-3 am-form-label">图片上传</label>
                        <div class="am-u-sm-9">
                            <input type="file" id="user-print" name="img"  placeholder="商品图片">
                            <small></small>
                        </div>
                    </div>



                    <div class="am-form-group" >
                        <label for="user-editor1" class="am-u-sm-3 am-form-label">商品描述</label>
                            <div class="am-u-sm-9">
                                <textarea  rows="4" id="user-editor1" name="caption" placeholder="商品描述"></textarea>
                                <small></small>
                            </div>
                    </div>

                    <div class="am-form-group">
                        <label  class="am-u-sm-3 am-form-label">商品规格</label>
                        <div class="am-u-sm-9">
                            <table >
                                <thead style="margin: auto">
                                <th style="text-align: center">名称</th>
                                <th style="text-align: center">售价</th>
                                <th style="text-align: center">库存</th>
                                </thead>
                                <tbody>
                                    <td>
                                        <select  class="xiala-right">
                                            <option value="option1">名称</option>
                                            <option value="option2"></option>
                                            <option value="option3"></option>
                                        </select>
                                    </td>
                                    <td>
                                        <input type="number" name="price" />
                                    </td>
                                    <td>
                                        <input  type="number" name="inventory"/>
                                    </td>
                                </tbody>
                            </table>
                        </div>
                     </div>


                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">商品销量 </label>
                        <div class="am-u-sm-9">
                            <input type="text" id="user-phone" name="count" placeholder="商品销量">
                            <small></small>
                        </div>
                    </div>

                    <li class="am-form-group" data-necessary="1" data-field="express_rule_id" data-type="运费" data-name="运费设置">
                        <label class="am-u-sm-3 am-form-label">运费设置</label>
                        <div class="am-u-sm-9">
                            <label for="express" style="margin: 0;">&nbsp;快递&nbsp;</label><input id="express" name="freight" type="radio"><label for="freeExpress">&nbsp;包邮&nbsp;</label><input id="freeExpress" name="freight" type="radio" checked="checked">
                        </div>
                        <div class="express-select" style="display: none;">
                            <select style="display: none;"></select>
                            <div class="am-u-sm-9 ">+新建运费模板</div>
                            <div style="color: #f00;margin-top: 10px;">注：由于版本原因，多商家店铺不能用快递功能，建议选择包邮。</div>
                        </div>
                    </li>
                    <li class="am-form-group" data-necessary="0" data-field="type" data-type="选择" data-name="商品类型">
                        <label class="am-u-sm-3 am-form-label">商品类型</label>
                        <div class="am-u-sm-9">
                            <select class="goods_info">
                                <option value="0">实物商品</option>
                            </select>
                        </div>
                    </li>

                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <button type="submit" class="am-btn am-btn-primary">提交</button>
                            <button type="submit" class="am-btn am-btn-primary">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var ue = UE.getEditor('user-editor1');
</script>






